/**
 * Created by Administrator on 2017/7/11 0011.
 */

import Relay from "react-relay";
export default class ShowWorkGroupProInfoMutation extends Relay.Mutation {

    static fragments = {};

    getMutation() {
        return Relay.QL`mutation { showWorkGroupProInfo }`;
    }

    getVariables() {
        return {
            argsInput: {
                startDate: this.props.startDate,
                workGroupId: this.props.workGroupId,
                requestPlat: this.props.requestPlat,
                enterpriseId: this.props.enterpriseId,
                uid: this.props.uid,
                token: this.props.token,
                endDate: this.props.endDate,
                workShopId: this.props.workShopId,
                action: this.props.action
            }
        };
    }

    getFatQuery() {
        return Relay.QL`fragment on showWorkGroupProInfoPayload  {
            showWorkGroupProInfo {
                errorCode
                value
                totalResult
                id
                censusGoodsReports
                stylePlanReports
                stylePlanFreeDay
                proWorkGroup{
                    workShopName
                    name
                    workerNum
                }
            }
        }`;
    }

    getConfigs() {
        return [{
            type: 'REQUIRED_CHILDREN',
            children: [Relay.QL`
              fragment on showWorkGroupProInfoPayload  {
                    showWorkGroupProInfo {
                        errorCode
                        value
                        totalResult
                        id
                        censusGoodsReports
                        stylePlanReports
                        stylePlanFreeDay
                        proWorkGroup{
                            workShopName
                            name
                            workerNum
                        }
                    }
                 }
            `]
        }];
    }

}
